/**
 * 
 */
package com.vision.admin.cl.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Widget;
import com.sencha.gxt.widget.core.client.TabItemConfig;
import com.vision.admin.cl.resource.AdminResources;
import com.vision.core.cl.ui.TabItemPanel;

/**
 * @author Mark
 *
 */
public class AdminDashboardPanel extends TabItemPanel {
	
	public static final String ID = "dashboard"; 
	
	interface Binder extends UiBinder<Widget, AdminDashboardPanel> { }
	
	private Binder binder = GWT.create(Binder.class);
	
	// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	
	public AdminDashboardPanel() {
		setWidget(binder.createAndBindUi(this));
	}

	// ITabItemPanel Methods %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	
	@Override
	public String getPanelId() {
		return ID;
	}

	@Override
	public TabItemConfig getConfig() {
		if (config == null) {
			config = new TabItemConfig("Dashboard", false);
			config.setIcon(AdminResources.INSTANCE.dashboard());
		}
		return config;
	}

	/* (non-Javadoc)
	 * @see com.vision.core.cl.ui.ITabItemPanel#loadData()
	 */
	@Override
	public void loadData() {
		
	}

}
